﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Main.Models
{
    public class SalaryItem
    {
        private static DateTime _firstTime = new DateTime(2015, 7, 1, 0, 0, 0);//发工资的第一个月 
        public int SalaryItemId { get; set; }
        public string Name { get; set; }
        public decimal Value { get; set; }
        /// <summary>
        /// 发的是第几个月的工资
        /// </summary>
        public int MonthIndex { get; set; }

        public DateTime Month
        {
            get
            {
                return _firstTime.AddMonths(MonthIndex);
            }
        }
        public bool Effective { get; set; } = true;
    }

    }
